# BSP/CMakeLists.txt
# 递归收集 LED, SPI, lcd 子目录下所有 .c 文件

file(GLOB_RECURSE srcs
        "fan/*.c"
        "lcd/*.c"
        "ui/*.c"
)

idf_component_register(
    SRCS 
        ${srcs}

    INCLUDE_DIRS
        fan lcd ui

    REQUIRES 
        driver esp_lcd esp_common led_strip esp_timer lvgl
)

# 保持你的编译选项
component_compile_options(-ffast-math -O0 -Wno-error=format -Wno-format)
